# 启动ssh收发端口
import os

def startSSH(ip, port, user, passwd, size, timeout, apiport, outport):
    # python解释器绝对路径(读取事先设置好的python家目录)
    JainaPython = os.getenv('JainaPython').replace('\\', '\\\\')
    JainaPython = JainaPython + "python.exe"
    os.system(
        JainaPython + " .\\socket\\sshSendCmdAPI.py -l " + ip + " -P " + port + " -u " + user + " -p " + passwd + " -s " + size + " -t " + timeout + " -i " + apiport + " -o " + outport)